package com.yizhang.principle.compositereuse;

/**
 * @Author: yi.zhang
 * @CreateTime: 2025-08-21 15:38:49
 * @Description: 合成复用原则
 */
public class Test {
    public static void main(String[] args) {
        ProductDao dao = new ProductDao();
        dao.setConnection(new MySqlDB());
        dao.getProduct();
        dao.setConnection(new OracleDB());
        dao.getProduct();
    }
}
